<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-if 指令的使用</title>
</head>
<body>
<div id="app">
    <div v-if="true">
      条件为真时显示
    </div>

    <div v-if="isShow">
      条件为真时显示
    </div>


    <div v-if="lan==='chs'">中文</div>

</div>
<script type="module">
  import {createApp, ref} from "../../../../../js/vue.esm-browser.js";

  const app = createApp({
    setup(){
      let isShow = ref(true)
      let lan = ref("chs")

      return {
        isShow,
        lan,
      }
    }
  })
  app.mount("#app")
</script>

</body>
</html>